Avoid centering the label that is reparented from the menuitem. (#136614,
authorMatthias Clasen <maclas@gmx.de>
Tue, 9 Mar 2004 22:14:30 +0000 (22:14 +0000)
committerMatthias Clasen <matthiasc@src.gnome.org>
Tue, 9 Mar 2004 22:14:30 +0000 (22:14 +0000)
Tue Mar  9 23:09:46 2004  Matthias Clasen  <maclas@gmx.de>

* gtk/gtkoptionmenu.c (gtk_option_menu_init): Avoid centering
the label that is reparented from the menuitem.  (#136614, Dennis
Cranston)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkoptionmenu.c

index cbd588f036abb5f84d5b93a412fceb2775b095ee..3d63b3ebb7135c7c65b094f02bb0ad1472417121 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Tue Mar  9 23:09:46 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkoptionmenu.c (gtk_option_menu_init): Avoid centering 
+       the label that is reparented from the menuitem.  (#136614, Dennis
+       Cranston)
+
 Tue Mar  9 16:19:09 2004  Jonathan Blandford  <jrb@gnome.org>
 
        * gtk/gtkpathbar.c (struct _ButtonData): Encapsulate all of the
index cbd588f036abb5f84d5b93a412fceb2775b095ee..3d63b3ebb7135c7c65b094f02bb0ad1472417121 100644 (file)
@@ -1,3 +1,9 @@
+Tue Mar  9 23:09:46 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkoptionmenu.c (gtk_option_menu_init): Avoid centering 
+       the label that is reparented from the menuitem.  (#136614, Dennis
+       Cranston)
+
 Tue Mar  9 16:19:09 2004  Jonathan Blandford  <jrb@gnome.org>
 
        * gtk/gtkpathbar.c (struct _ButtonData): Encapsulate all of the
index cbd588f036abb5f84d5b93a412fceb2775b095ee..3d63b3ebb7135c7c65b094f02bb0ad1472417121 100644 (file)
@@ -1,3 +1,9 @@
+Tue Mar  9 23:09:46 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkoptionmenu.c (gtk_option_menu_init): Avoid centering 
+       the label that is reparented from the menuitem.  (#136614, Dennis
+       Cranston)
+
 Tue Mar  9 16:19:09 2004  Jonathan Blandford  <jrb@gnome.org>
 
        * gtk/gtkpathbar.c (struct _ButtonData): Encapsulate all of the
index cbd588f036abb5f84d5b93a412fceb2775b095ee..3d63b3ebb7135c7c65b094f02bb0ad1472417121 100644 (file)
@@ -1,3 +1,9 @@
+Tue Mar  9 23:09:46 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkoptionmenu.c (gtk_option_menu_init): Avoid centering 
+       the label that is reparented from the menuitem.  (#136614, Dennis
+       Cranston)
+
 Tue Mar  9 16:19:09 2004  Jonathan Blandford  <jrb@gnome.org>
 
        * gtk/gtkpathbar.c (struct _ButtonData): Encapsulate all of the
index cbd588f036abb5f84d5b93a412fceb2775b095ee..3d63b3ebb7135c7c65b094f02bb0ad1472417121 100644 (file)
@@ -1,3 +1,9 @@
+Tue Mar  9 23:09:46 2004  Matthias Clasen  <maclas@gmx.de>
+
+       * gtk/gtkoptionmenu.c (gtk_option_menu_init): Avoid centering 
+       the label that is reparented from the menuitem.  (#136614, Dennis
+       Cranston)
+
 Tue Mar  9 16:19:09 2004  Jonathan Blandford  <jrb@gnome.org>
 
        * gtk/gtkpathbar.c (struct _ButtonData): Encapsulate all of the
index d3bbb021220963f68466f78619399d63208afff9..c13b9a2f17953d5f29aab541cdb6cd2a9d4af04d 100644 (file)
@@ -1,5 +1,5 @@
 /* GTK - The GIMP Toolkit
- * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Josh MacDonald
+ * Copyright (C) 1995-1997 Peter Mattis, Spencer Kimball and Jsh MacDonald
  *
  * This library is free software; you can redistribute it and/or
  * modify it under the terms of the GNU Lesser General Public
@@ -225,6 +225,12 @@ gtk_option_menu_init (GtkOptionMenu *option_menu)
   option_menu->menu_item = NULL;
   option_menu->width = 0;
   option_menu->height = 0;
+  /*
+   * Avoid centering the label that is reparented from the menuitem.
+   * Since gobject doesn't support overriding default values of
+   * properties in a convenient way yet, we simply set the value here.
+   */
+  gtk_button_set_alignment (GTK_BUTTON (option_menu), 0.0, 0.5);
 }
 
 GtkWidget*